<p>
<label for="<?php echo $title_id; ?>"><?php _e( 'Title:', 'wp-cr-mobile' ); ?></label> 
<input class="widefat" id="<?php echo $title_id; ?>" name="<?php echo $title_name; ?>" type="text" value="<?php echo $title; ?>" />
</p>

<p>
<label for="<?php echo $company_id; ?>"><?php _e( 'Company:', 'wp-cr-mobile' ); ?></label> 
<select class="widefat" id="<?php echo $company_id; ?>" name="<?php echo $company_name; ?>">
<?php
foreach ($companies as $value) { ?>
    <option value="<?php echo $value['ID']; ?>"<?php
    if ($value['ID'] == $company) {
        echo ' selected';
    }
    ?>><?php echo stripslashes($value['name']); ?></option>
<?php } ?>
</select>
</p>

<p>
<label for="<?php echo $limit_id; ?>"><?php _e( 'Number of Reviews:', 'wp-cr-mobile' ); ?></label> 
<input class="widefat" id="<?php echo $limit_id; ?>" name="<?php echo $limit_name; ?>" type="text" value="<?php echo $limit; ?>" />
</p>

<p>
<label for="<?php echo $sort_id; ?>"><?php _e( 'Sort:', 'wp-cr-mobile' ); ?></label><select class="widefat" id="<?php echo $sort_id; ?>" name="<?php echo $sort_name; ?>">
<?php
$sortOptions = array(
    'review_date' => 'Date',
    'rating' => 'Rating'
);
foreach ($sortOptions as $key => $value) { ?>
    <option value="<?php echo $key; ?>"<?php
    if ($key == $sort) {
        echo ' selected';
    }
    ?>><?php echo $value; ?></option>
<?php } ?>
</select>
</p>
